crPEGetGraphOptions

The crPEGetGraphOptions function identifies the display options that are set for the specified graph in the specified section. Use this function to obtain information about any of several graph options. These options include the minimum and maximum values that can appear on the graph, whether grid lines appear, whether risers are labeled, whether bar graphs have horizontal or vertical bars, and whether a legend appears on the graph.

Declare Function crPEGetGraphOptions Lib "crwrap32.dll" Alias "crvbPEGetGraphOptions" (ByVal printJob As Integer, ByVal sectionCode As Integer, ByVal GraphN As Integer, ByRef GraphMaxValue As Double, ByRef GraphMinValue As Double, ByRef ShowDataValue As Long, ByRef ShowGridLine As Long, ByRef VerticalBars As Long, ByRef ShowLegend As Long, ByRef FontFaceName As String) As Integer

Parameters

printJob

Specifies the handle of the print job from which you want to get information about a graph.

sectionCode

Specifies the code for the report section in which the graph appears. See the table of section constants supplied in Working with section codes.

GraphN

Specifies which graph within the section you want information about. This value is 0 indexed. Within a section, graphs are numbered from top to bottom first, then from left to right if they have the same top.

GraphMaxValue

Specifies the maximum value that will appear in any graph. Any graph values above this value are not charted.

GraphMinValue

Specifies the minimum value that will appear in any graph. Any graph values below this value are not charted.

ShowDataValue

Specifies whether or not to display the numerical value associated with each riser on the chart. If set to TRUE (1), a value appears in the graph for each riser.

ShowGridLine

Specifies whether or not to display grid lines on the graph.

VerticalBars

Specifies whether to display the bars in a bar graph vertically or horizontally.

ShowLegend

Specifies whether or not to display the graph legend.

FontFaceName

Specifies the font face for all text and values in the entire graph.

Return Value

TRUE (1) if the call is successful, FALSE (0) if the call fails.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com